GetMemoryCount
Gets the internal NXT memory counter (manual mapping replica)
Contents
Syntax
memory = GetMemoryCount(port)
memory = GetMemoryCount(port, handle)
Description
memory = GetMemoryCount(port) gets the internal NXT memory counter (maual mapping replica) of the given motor port. The value port can be addressed by the symbolic constants MOTOR_A, MOTOR_B and MOTOR_C analog to the labeling on the NXT Brick. The return value memory contains the value of the NXT memory counter (maunal mapping replica).
The last optional argument can be a valid NXT handle. If none is specified, the default handle will be used (call COM_SetDefaultNXT to set one).
Note:
This function is recommened for the advanced user.
Examples
memory = GetMemoryCount(MOTOR_A);
See also
SetMemoryCount, MOTOR_A, MOTOR_B, MOTOR_C
Signature
- Author: Alexander Behrens (see AUTHORS)
- Date: 2007/10/15
- Copyright: 2007-2008, RWTH Aachen University